// Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov  Date: 27/11/2008 22:59:23
// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   NodeComparator.java

package reversi;

import java.util.Comparator;

// Referenced classes of package reversi:
//            Node

public class NodeComparator
    implements Comparator
{

    public NodeComparator()
    {
    }

    public int compare(Object obj, Object obj1)
    {
        double d = ((Node)obj).score;
        double d1 = ((Node)obj1).score;
        if(d > d1)
            return -1;
        if(d1 > d)
            return 1;
        return obj != obj1 ? 1 : 0;
    }
}